package com.itheima.array;

public class ArrDemo02 {
    public static void main(String[] args) {
        int [] arr = new int[]{1,2,3,4,5};
        boolean[] arr2 = new boolean[]{true,false};
        System.out.println(arr2[0]);
        //ArrayIndexOutOfBoundsException:数组角标索引越界
        //System.out.println(arr[5]);

        //NullPointerException:空指针异常
       /*
        arr = null;
        System.out.println(arr[0]);
        */

    }
}
